#include "../drivers/7segments.h"
#include "../drivers/InputPanel.h"
void myListener(union InputPanelButtons buttons)
{
    if(buttons.bits.BTN_1)
    {
        writeNumberToSegments(0);
    }
    return;
}


int main()
{
    int interval = 100;
    union InputPanelButtons enabler;
    enabler.ButtonRegister = ALL_BUTTONS;
    _enable();
    enableInputPanelInterrupts(enabler);
    setInputPanelListener(myListener);
    writeNumberToSegments(35);
	while(interval != 0)
	{
	}
	return 0;
}
